package expression.v1.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import expression.v1.dao.IExpPackageDao;
import expression.v1.model.ExpPkg;

@Service(value="expPkgService")
public class ExpPackageServiceImp implements IExpPackageService {

	@Resource
	IExpPackageDao expPkgDaoImp;
	
	@Override
	public int addExpPackage(ExpPkg pkg) {
		return expPkgDaoImp.addExpPackage(pkg);
	}

	@Override
	public int addAndUpdateExpPackages(List<ExpPkg> pkgs) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteExpPackage(ExpPkg pkg) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteExpPackages(List<ExpPkg> pkgs) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public ExpPkg queryExpPackage(String keyword) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<ExpPkg> queryExpPackages(String... keyword) {
		return null;
	}

	@Override
	public List<ExpPkg> queryLatest(int from,int limit) {
		List<ExpPkg> expPkgs = expPkgDaoImp.queryLatest(from,limit);
		return expPkgs;
	}

	@Override
	public int countAll(){
		return expPkgDaoImp.countAll();
	}

	@Override
	public int countByConditions(Object... args) {
		return expPkgDaoImp.countByConditions(args);
	}

	@Override
	public List<ExpPkg> queryCheckingSelKey(int state) {
		return expPkgDaoImp.queryCheckingSelKey(state);
	}
	
	@Override
	public List<ExpPkg> queryCheckedSelKey(int state) {
		return expPkgDaoImp.queryCheckedSelKey(state);
	}

	@Override
	public int updateQueryKeyState(int state, String[] keywords) {
		return expPkgDaoImp.updateQueryKeyState(state,keywords);
	}
}
